<html>
<head><meta charset="utf-8"><title>frequent panic while working on hir_ty · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/frequent.20panic.20while.20working.20on.20hir_ty.html">frequent panic while working on hir_ty</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="231160750"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/frequent%20panic%20while%20working%20on%20hir_ty/near/231160750" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/frequent.20panic.20while.20working.20on.20hir_ty.html#231160750">(Mar 20 2021 at 17:52)</a>:</h4>
<p>I don't know if anyone else has noticed this, but RA is panicking a lot while working on hir_ty. Turns out there's a definition in ena that triggers a query cycle that we're supposed to recover from, but there's a <a href="https://github.com/salsa-rs/salsa/pull/257">bug in Salsa</a> with the cycle recovery that then causes panics. That ena code shouldn't actually cause a cycle though (it doesn't in rustc), so I'll try to fix that</p>



<a name="231160783"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/frequent%20panic%20while%20working%20on%20hir_ty/near/231160783" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/frequent.20panic.20while.20working.20on.20hir_ty.html#231160783">(Mar 20 2021 at 17:53)</a>:</h4>
<p><span class="user-mention" data-user-id="133169">@matklad</span> <span class="user-mention" data-user-id="116009">@nikomatsakis</span> I have no idea how to fix that Salsa panic though</p>



<a name="231160838"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/frequent%20panic%20while%20working%20on%20hir_ty/near/231160838" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/frequent.20panic.20while.20working.20on.20hir_ty.html#231160838">(Mar 20 2021 at 17:54)</a>:</h4>
<p>Ah, I think I've hit that bug too</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>